package com.seashop.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author moredln
 * @desc 返回码枚举
 * @date 2020-07-10 22:44
 */
@AllArgsConstructor
@Getter
public enum ResponseEnum {

    // 成功
    SUCCESS(200, "操作成功"),
    // 资源为空
    EMPTY(201, "资源为空"),
    // 失败
    FAIL(1000, "操作失败"),
    // token失效
    TOKEN_EXPIRE(401, "token expire"),
    // 缺失token
    TOKEN_EMPTY(402, "token is empty"),
    // 服务器错误
    SERVER_ERROR(500, "server  error"),
    // 复制错误
    BEAN_COPY_FAIL(1003, "bean copy fail");

    private Integer code;

    private String msg;

}
